package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设施维护记录对象 property_facility_maintain
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class PropertyFacilityMaintain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long maintainId;

    /** 设施ID */
    @Excel(name = "设施ID")
    private Long facilityId;

    /** 维护类型：REPAIR/MAINTENANCE/REPLACE */
    @Excel(name = "维护类型：REPAIR/MAINTENANCE/REPLACE")
    private String maintainType;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date maintainTime;

    /** 维护人员ID（关联sys_user） */
    @Excel(name = "维护人员ID", readConverterExp = "关=联sys_user")
    private Long staffId;

    /** 维护内容 */
    @Excel(name = "维护内容")
    private String content;

    /** 费用 */
    @Excel(name = "费用")
    private BigDecimal cost;

    /** 供应商 */
    @Excel(name = "供应商")
    private String supplier;

    public void setMaintainId(Long maintainId) 
    {
        this.maintainId = maintainId;
    }

    public Long getMaintainId() 
    {
        return maintainId;
    }

    public void setFacilityId(Long facilityId) 
    {
        this.facilityId = facilityId;
    }

    public Long getFacilityId() 
    {
        return facilityId;
    }

    public void setMaintainType(String maintainType) 
    {
        this.maintainType = maintainType;
    }

    public String getMaintainType() 
    {
        return maintainType;
    }

    public void setMaintainTime(Date maintainTime) 
    {
        this.maintainTime = maintainTime;
    }

    public Date getMaintainTime() 
    {
        return maintainTime;
    }

    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }

    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintainId", getMaintainId())
            .append("facilityId", getFacilityId())
            .append("maintainType", getMaintainType())
            .append("maintainTime", getMaintainTime())
            .append("staffId", getStaffId())
            .append("content", getContent())
            .append("cost", getCost())
            .append("supplier", getSupplier())
            .toString();
    }
}
